package cn.cht.sqlsession;

import cn.cht.pojo.Configuration;
import cn.cht.pojo.MappedStatement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface Executor {
    public <E> List<E> query(Configuration configuration, MappedStatement  mappedStatement, Object...params) throws Exception;



    /**
     * 添加属性
     */
    int addOne(Configuration configuration, MappedStatement  mappedStatement, Object...params) throws Exception;

    /**
     * 修改属性
     */
    int update(Configuration configuration, MappedStatement  mappedStatement, Object...params) throws Exception;

    /**
     * 删除
     */
    int delete(Configuration configuration, MappedStatement  mappedStatement, Object...params) throws Exception;

}
